<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

<div id="example" v-bind:class="[activeClass, errorClass]">ddd</div>
<script>
var vm = new Vue({
	el: '#example',
	data: {
		activeClass: 'active',
		errorClass: 'text-danger'
	}
})

<!--
v-bind:class="[isActive ? activeClass : '', errorClass]"
v-bind:class="[{ active: isActive }, errorClass]"
-->
</script>